<!-- 继承公共视图文件 -->
<extend name="./Application/Admin/View/layout.html" />
 <!-- 可变内容区域 -->
<block name="mid">

	<div class="row">
	    <div class="col-md-6">
	        <div class="panel panel-default">
	            <div class="panel-heading">
	                <h2><i class="fa fa-indent red"></i><strong>添加分类</strong></h2>
	            </div>
				<form action="" method="post" id="signupForm" enctype="multipart/form-data" class="form-horizontal">
				    <div class="panel-body">

                        <div class="form-group">
                            <label class="col-md-3 control-label" for="select">分类层级</label>
                            <div class="col-md-9">
                                <select id="select" name="pid" class="form-control" size="1">
                                    <option value="0">顶级分类</option>
                                        <foreach name="list" item="v">
                                          <option value="{$v.id}">{$v.name}</option>
                                        </foreach>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label" for="select">商品类型</label>
                            <div class="col-md-9">
                                <select id="select" name="goods_type_id" class="form-control" size="1">

                                        <foreach name="goods_type" item="v">
                                          <option value="{$v.id}">{$v.name}</option>
                                        </foreach>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
		                    <label class="col-md-3 control-label" for="text-input">分类名称</label>
		                    <div class="col-md-9">
		                        <input type="text" id="name" name="name" class="form-control" placeholder="请输入账号">
		                        <span class="help-block error"></span>
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-md-3 control-label" for="password-input">排序</label>
		                    <div class="col-md-9">
		                        <input type="text" id="sort" name="sort" class="form-control" placeholder="请输入确认密码">
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-md-3 control-label">显示</label>
		                    <div class="col-md-9">
		                        <label class="radio-inline" for="inline-radio1">
		                        	<input type="radio" id="status" name="is_show" value="1"> 是
		                        </label>
		                        <label class="radio-inline" for="inline-radio2">
		                        	<input type="radio" id="status" name="is_show" value="0"> 否
		                        </label>
		                    </div>
		                    <span class="help-block error"></span>
		                </div>

						<br>
				</div>
				<div class="panel-footer">
                    <button type="submit" class="btn btn-sm btn-success"><i class="fa fa-dot-circle-o"></i> 提交</button>
                    <button type="reset" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> 重置</button>
                </div>
		      </form>
	        </div>
	    </div>

	</div><!--/.row-->

</block>
<block name="js">

    <script type="text/javascript" src="__ADMIN__assets/js/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="__ADMIN__assets/js/jquery.validate.min.js"></script>
	<script type="text/javascript">
		$(function(){

		})
	</script>
</block>